<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {

	});
</script>
<style type="text/css">
<!--
/* body {background-color: #ff00ff;} */
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
	align="center" >
	<tr>
		<td valign="top" align="center">
			<TABLE cellpadding="0" cellspacing="0" border="0" width="100%">
				<TR>
					<TD>
						<table width="100%">
							<tr>
								<td height="2"></td>
							</tr>
						</table>

						<table cellspacing="0" cellpadding="0" border="0" width="100%"
							style="margin: 20px 0px 4px 0px">
							<tr valign="bottom">
								<td></td>
								<td align="right"><a
									href="./ubdmg0102Q.do?p_id=${param.p_id }&brd_no=${param.brd_no}"
									class="ebbaord-default"><img
										src='/usr/images/ic-write.gif' border='0'
										vspace='0' alt="쓰기"></a></td>
							</tr>
						</table> <!-- list -->
						<TABLE cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr>
								<td width="140" height="1" />
								<td width="140" height="1" />
								<td width="140" height="1" />
								<td width="140" height="1" />
							</tr>
							
<c:if test="${list !=null && fn:length(list)>0 }">
							<tr>
	<c:forEach var="map" items="${list}" varStatus="status">
		<c:if test="${status.index != 0 && status.index mod 4 == 0 }"></tr><tr></c:if>
								<td align="center">
									<table width="140">
										<tr>
											<td style="line-height: 25px; padding: 10px 0px 0px 0px;"><A
												HREF="./ubdmg0107Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no}"
												class="css_default_text">
												<c:if test="${empty map.p_file_nm }"><img src="/usr/images/no_img.gif" width="120" height="120" border='1' hspace=3 vspace=3 style='border-color: #CCCCCC'></c:if>
												<c:if test="${!empty map.p_file_nm }"><img src="${map.p_file_nm }" width="120" height="120" border='1' hspace=3 vspace=3 style='border-color: #CCCCCC'></c:if>
												
												
												</A><br/>
												<span style="width: 50px;">
													<a href="./ubdmg0107Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no}" class="css_default_text">
														<nobr style="display:block; text-overflow:ellipsis; width:140px; overflow:hidden">
															${map.bd_title }
														</nobr>
													</a>
												</span>
											</td>
										</tr>
									</table>
								</td>
	</c:forEach>
	<c:if test="${ (fn:length(list) mod 4) == 1}"><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></c:if>
	<c:if test="${ (fn:length(list) mod 4) == 2}"><td>&nbsp;</td><td>&nbsp;</td></c:if>
	<c:if test="${ (fn:length(list) mod 4) == 3}"><td>&nbsp;</td></c:if>
							</tr>
</c:if>
						</table> <!-- 메뉴출력 -->
						<table width="100%" border=0 cellspacing="2" cellpadding="0"
							STYLE="font: 9pt" align=center>
							<tr>
								<td colspan="2">
								${pageHtml }
								</td>
							</tr>
							<tr>
								<td valign=top align=left>
									<!-- search -->
									<div class="search">
										<table cellspacing="4" cellpadding="0" border="0">
											<form method="get" name="frmSearch" action="./ubdmg0101Q.do">
												<tr>
													<td>
													<input type="hidden" name="brd_no" value="${param.brd_no }">
													<input type="hidden" name="p_id" value="${param.p_id }">
													<select name="src_condition" class="css_select">
														<option value="1" <c:if test="${'1'==param.src_condition }">selected="selected"</c:if>>제목</option>
														<option value="2" <c:if test="${'2'==param.src_condition }">selected="selected"</c:if>>이름</option>
														<option value="3" <c:if test="${'3'==param.src_condition }">selected="selected"</c:if>>제목 + 내용</option>
													</select>
													
													</td>
													<td><input type="text" NAME="src_data" value="${param.src_data }"
														class="css_input" style="width: 208px"></td>
													<td><input type="image"
														src="/usr/images/btn_srh.gif"
														align="absmiddle" border="0" alt="검색"></td>
												</tr>
											</form>
										</table>
									</div>

								</td>
								<td valign="top" align="right">&nbsp;</td>
							</tr>
						</table>
					</TD>
				</TR>
			</TABLE>
		</td>
	</tr>
</table>
